
<form action="acao/links.php?acao=cadastrar" method="post">
Titulo
<br />
<input name="titulo" type="text" class="text-input medium-input datepicker" id="titulo" value="<?=$_GET['titulo']?>" />
<br>
<br />
Categoria:<br />

<select name="categoria">
<option value="0">Selecione a categoria</option>
<?php
$sql	= mysql_query("SELECT * FROM links_categoria");
while($row = mysql_fetch_array($sql)){
?>
<option value="<?=$row['id']?>"><?=$row['titulo']?></option>
<? } ?>
</select>

<a href="#cat" rel="lyteframe" rev="width:450; height:500px" class="default-tab" onmouseover="this.href='modulos/links/lista-categoria.php?titulo='+document.getElementById('titulo').value">
<button class="button" style="margin-right:10px;" type="button">Adicionar</button>
</a>
<button class="button" style="margin-right:10px;" type="button" onclick="javascript:location.href='?modulo=links&acao=insere';">Atualizar</button>


<br />

<br />


Link<br />
<input name="url" type="text" class="text-input medium-input datepicker" id="url" />
<br>
<br /> 

Detalhes
<br />
<textarea name="detalhes" rows="5" class="text-input textarea wysiwyg" id="detalhes"></textarea>
	<script type="text/javascript">
    var oFCKeditor = new FCKeditor( 'detalhes' ) ;
    oFCKeditor.BasePath = "../lib/fckeditor/" ;
    oFCKeditor.Width = "100%";
    //oFCKeditor.Height = "300";
    oFCKeditor.Height = "400";
    oFCKeditor.ReplaceTextarea() ;
    </script>
<br />
<br />
Ativo:
<input name="ativo" type="checkbox" id="ativo" value="1" />
<br />
<br>
<input type="submit" class="button" value="Cadastrar">
</form>
